import request from '@/utils/request'

// 查询biz_h门店分类列表
export function listStoreCategory(query) {
  return request({
    url: '/biz/deductionStoreCategory/list',
    method: 'get',
    params: query
  })
}

// 查询biz_门店分类详细
export function getStoreCategory(id) {
  return request({
    url: '/biz/deductionStoreCategory/' + id,
    method: 'get'
  })
}

// 新增biz_门店分类
export function addStoreCategory(data) {
  return request({
    url: '/biz/deductionStoreCategory',
    method: 'post',
    data: data
  })
}

// 修改biz_门店分类
export function updateStoreCategory(data) {
  return request({
    url: '/biz/deductionStoreCategory',
    method: 'put',
    data: data
  })
}

// 删除biz_门店分类
export function delStoreCategory(id) {
  return request({
    url: '/biz/deductionStoreCategory/' + id,
    method: 'delete'
  })
}
